﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

/****************************************************************
*   类名：FindModelParamerers
*   命名空间：CommonModule
*   作者：X
*   CLR版本：4.0.30319.42000
*   创建时间：2022/3/15 10:49:23
*   描述说明：
*   修改历史：
*****************************************************************/
namespace CommonModule
{
    public class FindModelParamerers
    {
        private double angleMin;
        private double angleMax;
        private PolarityEnum polarity;
        private double socreMin;
        private int findNum;
        private double greediness;
        /// <summary>
        /// 输入角度，会自动转换成弧度
        /// </summary>
        public double AngleMin { get => angleMin; set => angleMin = value * Math.PI / 180; }
        public double AngleMax { get => angleMax; set => angleMax = value * Math.PI / 180; }
        public PolarityEnum Polarity { get => polarity; set => polarity = value; }
        public double SocreMin { get => socreMin; set => socreMin = value>0&&value<1?value:0.5; }
        public int FindNum { get => findNum; set => findNum = value; }
        public double Greediness { get => greediness; set => greediness = value; }


        /// <summary>
        /// 模板极性
        /// </summary>
        public enum PolarityEnum
        {
            use_polarity,
            ignore_color_polarity,
            ignore_global_polarity,
            ignore_local_polarity
        }
    }
}
